import type { HttpRes } from '@/utils/http/types'

export type ScrollListConfig = {
  /** 接口promise对象 */
  apiHandler: (params: any) => Promise<HttpRes<{ list: Array<any> }>>
  /** 接口参数对象 */
  apiParams?: ((params?: any) => Record<string, any>) | Record<string, any>,
  /** 拦截器 */
  interceptor?: (list: Array<any>, page?: number) => Array<any>
  /** z-paging配置对象https://z-paging.zxlee.cn/api/props/common.html */
  zPagingConfig?: Record<string, any>,
}
